<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('manage/recordList')}">申户记录列表</a></li>
			<!-- <li><a href="{:url('fbfans/add')}">添加粉丝页管理列表</a></li> -->
		</ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('manage/recordlist')}">
            域名或主体中文名:
            <input type="text" class="form-control" name="domain" style="width: 120px;" value="{:input('request.domain/s','')}" placeholder="域名或主体名">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('manage/recordList')}">清空</a>
        </form>

        <form class="well form-inline margin-top-20" method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('manage/recordExcelAdd')}">
			<div class="form-group">  
				 <input id="excel-4" type="hidden" name="excel_url" >
				 <input  id="excel-4-name" type="text" name="excel_name" placeholder="导入表格名称" class="form-control"  style="widtd: 120px;">
				 <a style="padding: 7px 8px;" href="javascript:uploadOne('Excel上传','#excel-4','file');" class="btn btn-sm btn-primary btn-danger">选择上传文件</a>
			</div>
			<div class="form-group">
			  <div class="col-sm-offset-2 col-sm-10">
				 <button type="submit" class="btn btn-primary js-ajax-submit">导入</button>
			  </div>
			</div>
		</form>

		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>id</th>
					<th>部门</th>
					<th>站长</th>
					<th>域名</th>
					<th>所属平台</th>
					<th>主体</th>
					<th>代理</th>
					<th>广告账户</th>
					<th>粉丝页</th>
					<th>申户时间</th>
					<th>备注</th>
<!-- 					<th width="130">{:lang('ACTIONS')}</th> -->

				</tr>
			</thead>
			<tbody>
				<foreach name="records" item="rvo">
				<tr>
					<td>{$rvo.id}</td>
					<td>{$rvo.group}</td>
					<td>{$rvo.stationmaster}</td>
					<td>{$rvo.domain}</td>
					<td>{$rvo.platform}</td>
					<td>{$rvo.cn_name}</td>
					<td>
						<foreach name="rvo.agents" item="avo">
							<p>{$avo.name}</p>
						</foreach>
					</td>
					<td>
						<foreach name="rvo.advertisingaccount" item="advo">
							<p>{$advo.account_num}</p>
						</foreach>
					</td>
					<td>
						<foreach name="rvo.fanpages" item="fvo">
							<p>{$fvo.url}  |  粉丝页状态 :<?php if($fvo['status'] == 1){echo '<span style="color:green"> 正常 </span>';}else{echo '<span style="color:red"> 挂了 </span>';}?></p>
						</foreach>
					</td>
					<td><?php if ($rvo['apply_time']) {echo date("Y年m月d日",$rvo['apply_time']); }else{echo '';} ?></td>
					<td>{$rvo.comment}</td>
<!-- 					<td>
						<a href='{:url("fbfans/edit",array())}'>{:lang('EDIT')}</a>
						<a href="{:url('fbfans/delete',array())}" class="js-ajax-delete">{:lang('DELETE')}</a>
					</td> -->
				</tr>
				</foreach>
			</tbody>
		</table>
		<div>{$plistpage}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
